import request from './urlCovert'

/*
日常巡检
 */
export function addDailyInspection(data) {
  return request({
    url: '/dailyInspection/add',
    method: 'post',
    params: data
  })
}
export function deleteDailyInspection(data) {
  return request({
    url: '/dailyInspection/delete',
    method: 'post',
    params: data
  })
}
export function searchDailyInspection(data) {
  return request({
    url: '/dailyInspection/search',
    method: 'post',
    params: data
  })
}
export function updateDailyInspection(data) {
  return request({
    url: '/dailyInspection/update',
    method: 'post',
    params: data
  })
}

/*
日常巡检损害通知
 */
export function addDamageNotice(data) {
  return request({
    url: '/dailyInspectionDamageNotice/add',
    method: 'post',
    params: data
  })
}
export function deleteDamageNotice(data) {
  return request({
    url: '/dailyInspectionDamageNotice/delete',
    method: 'post',
    params: data
  })
}
export function searchDamageNotice(data) {
  return request({
    url: '/dailyInspectionDamageNotice/search',
    method: 'post',
    params: data
  })
}
export function updateDamageNotice(data) {
  return request({
    url: '/dailyInspectionDamageNotice/update',
    method: 'post',
    params: data
  })
}

/*
整修通知
 */
export function addRenovateDetail(data) {
  return request({
    url: '/renovateDetail/add',
    method: 'post',
    params: data
  })
}
export function deleteRenovateDetail(data) {
  return request({
    url: '/renovateDetail/delete',
    method: 'post',
    params: data
  })
}
export function updateRenovateDetail(data) {
  return request({
    url: '/renovateDetail/update',
    method: 'post',
    params: data
  })
}

/*
常规巡检计划
 */
export function dailyInspectionPlan(data) {
  return request({
    url: '/getDailyInspectionPlan',
    method: 'post',
    params: data
  })
}
/*
道路损坏状况
 */
export function getAllDamageType(data) {
  return request({
    url: '/getAllDamageType',
    method: 'post',
    params: data
  })
}
